/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.wooxes.server;

import org.wooxes.client.Comment;
import org.jdom.*;
/**
 *
 * @author woox
 */
public class CommentXML extends Element{
    
  public CommentXML(int linia, String html, String tipus) {
    super("comment");
    
    addContent(new Element("linia").setText(Integer.toString(linia)));
    addContent(new Element("html").setText(html));
    addContent(new Element("tipus").setText(tipus));
  }
  
  public CommentXML(Comment comment){
    this(comment.getLinia(), comment.getHTML(), comment.getTipus());
  }
}
